import request from "@/utils/request";


// 获取用户列表
export const userList = (params) => request.get("/api/user/list.do", params);

// 添加用户
export const insertUser = (obj) => request.post("/api/user/insert.do", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" }
});

// 删除用户
export const deleteUser = (obj) => request.post("/api/user/deleteById.do", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" }
});

// 编辑用户
export const updateUser = (obj) => request.post("/api/user/update.do", obj, {
    headers: { "Content-Type": "application/x-www-form-urlencoded" }
});

// 获取用户信息
export const userInfoService = () => request.get("/api/user/info.do");